import React, { Component } from 'react'
import Child from './Chlid'

export default class Mouse extends Component {
  render () {
    return (
      <div>
        {/* <Child
          render={position => {
            return (
              <div>
                position is {position.x} {position.y}
              </div>
            )
          }}
        /> */}
        <Child>
          {position => {
            return (
              <div>
                position is {position.x} {position.y}
              </div>
            )
          }}
        </Child>
      </div>
    )
  }
}
